package com.zlcx.tz.live.repository;

import com.zlcx.tz.live.domain.LiveSwitched;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

/**
 * @author shixiaopeng
 */
@Repository
public interface LiveSwitchedRepository extends JpaRepository<LiveSwitched, Long>, JpaSpecificationExecutor<LiveSwitched> {

    @Query(value = "select * from tz_live_switch limit 1", nativeQuery = true)
    LiveSwitched findFirst();
}
